<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
	<script type=text/javascript src="js/jquery/jquery-1.7.1.js"></script>
<!-- 	<link type="text/css" rel="stylesheet" href="css/common/success.css" /> -->
<!--     <META HTTP-EQUIV="Refresh" CONTENT="5;URL=home.do"> -->
</head>
<script type="text/javascript">
$(window).load(function() {
	var i = 5;
	var msg = $('#successMsg').text();
	time = function() {
		var showMsg = $('#showSuccessMsg');
		showMsg.text( msg + i +'秒後導回首頁');
		i-=1;
		if(i != 0) {
			setTimeout('time()',1000);
		} else {
			window.location.href= 'home.action';
		};
	};
	time();
});
</script>
<body>	
	<div id="successMsg" style="display: none"><s:property value="resultMsg"/></div>
	<div id="successContent">
		<div id="showSuccessMsg"></div>
		<div id="goHome">
			<a href="home.action">返回首頁</a>
		</div>
	</div>
</body>
</html>